package com.ruoyi.modules.service;

import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.modules.domain.DyAppUser;
import com.ruoyi.modules.domain.NumRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.modules.domain.vo.MoneyRecordDto;

/**
 * 次数记录Service接口
 *
 * @author ruoyi
 * @date 2022-02-03
 */
public interface INumRecordService  extends IService<NumRecord> {



    /**
     * 增加减少 - 次数
     * @param userId
     * @param msg
     * @return
     */
    boolean addNum(Long agentUserId, Long num, String msg);
    boolean subNum(Long agentUserId, Long num, String msg);
    MoneyRecordDto useNumAndGetId(Long agentUserId, DyAppUser dyAppUser);

    Long getTodayFreeNum(Long agentUserId);

}
